<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元素显示模式案例</title>
    <style>
        /* 行内元素和块元素的转换 */
        /* display block */
        a {
            width: 100px;
            height: 50px;
            background-color: rgb(207, 106, 24);
            display: block;
        }

        /* 块级元素和行内元素的转换 */
        div{
            width: 300px;
            height: 150px;
            background-color: rgb(197, 78, 63);
            display: inline;
        }
        /* 行内元素转换为行内块元素 */
        span{
            width: 300px;
            height: 50px;
            background-color: skyblue;
            display: inline-block;
        }
    </style>
</head>

<body>
    <!-- 块元素 行内元素 -->
    <!-- <div></div><span></span> -->

    <!-- 块元素 -->
    <!-- h p div ul ol li  -->

    <!-- 行内元素 -->
    <!-- a stronng b i em del s ins u span  -->

    <a href="#">lianjie</a>
    <a href="#">lianjie</a>
    <hr>
    <div>块级元素和行内元素的转换</div>
    <div>块级元素和行内元素的转换</div>
    <hr>
    <span>行内元素转换为行内块元素</span>
    <span>行内元素转换为行内块元素</span>
</body>

</html>